#if !defined(FileManager__INCLUDED_)
#define FileManager__INCLUDED_

#include <fstream>
#include <string>
#include <stdio.h>
#include <iostream>
#include <ios>
#include <cstdio>
#include "StringManager.h"

#define MAXBUFF 1073741824

using namespace std;


class FileManager
{
      public:             
             FileManager();
             ~FileManager();
             
             void deleteFile();
             
             void openFile(string fileName, string mode);
             void closeFile();
             
             string readLine();
             void writeLine(string line);
             
             string read(long size);
             void write(string str);
             
             bool isOpen();
             bool eof();

      private:
              fstream* file;
              string name;


};

#endif
